3.1.56 \(\int \frac {x^2 (d+e x^2+f x^4)}{a+b x^2+c x^4} \, dx\) [56]

Optimal. Leaf size=282 \[ \frac {(c e-b f) x}{c^2}+\frac {f x^3}{3 c}+\frac {\left (c^2 d-b c e+b^2 f-a c f+\frac {b^2 c e-2 a c^2 e-b^3 f-b c (c d-3 a f)}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{5/2} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\left (c^2 d-b c e+b^2 f-a c f-\frac {b^2 c e-2 a c^2 e-b^3 f-b c (c d-3 a f)}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{5/2} \sqrt {b+\sqrt {b^2-4 a c}}} \]

[Out]

(-b*f+c*e)*x/c^2+1/3*f*x^3/c+1/2*arctan(x*2^(1/2)*c^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2))*(c^2*d-b*c*e+b^2*f-a*c
*f+(b^2*c*e-2*a*c^2*e-b^3*f-b*c*(-3*a*f+c*d))/(-4*a*c+b^2)^(1/2))/c^(5/2)*2^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2)
+1/2*arctan(x*2^(1/2)*c^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2))*(c^2*d-b*c*e+b^2*f-a*c*f+(-b^2*c*e+2*a*c^2*e+b^3*f
+b*c*(-3*a*f+c*d))/(-4*a*c+b^2)^(1/2))/c^(5/2)*2^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 2.42, antiderivative size = 282, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {1678, 1180, 211} \begin {gather*} \frac {\text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right ) \left (\frac {-b c (c d-3 a f)-2 a c^2 e+b^3 (-f)+b^2 c e}{\sqrt {b^2-4 a c}}-a c f+b^2 f-b c e+c^2 d\right )}{\sqrt {2} c^{5/2} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {\sqrt {b^2-4 a c}+b}}\right ) \left (-\frac {-b c (c d-3 a f)-2 a c^2 e+b^3 (-f)+b^2 c e}{\sqrt {b^2-4 a c}}-a c f+b^2 f-b c e+c^2 d\right )}{\sqrt {2} c^{5/2} \sqrt {\sqrt {b^2-4 a c}+b}}+\frac {x (c e-b f)}{c^2}+\frac {f x^3}{3 c} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(x^2*(d + e*x^2 + f*x^4))/(a + b*x^2 + c*x^4),x]

[Out]

((c*e - b*f)*x)/c^2 + (f*x^3)/(3*c) + ((c^2*d - b*c*e + b^2*f - a*c*f + (b^2*c*e - 2*a*c^2*e - b^3*f - b*c*(c*
d - 3*a*f))/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(5/2)*Sqrt[
b - Sqrt[b^2 - 4*a*c]]) + ((c^2*d - b*c*e + b^2*f - a*c*f - (b^2*c*e - 2*a*c^2*e - b^3*f - b*c*(c*d - 3*a*f))/
Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(5/2)*Sqrt[b + Sqrt[b^2
 - 4*a*c]])

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 1180

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 1678

Int[(Pq_)*((d_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(d*x
)^m*Pq*(a + b*x^2 + c*x^4)^p, x], x] /; FreeQ[{a, b, c, d, m}, x] && PolyQ[Pq, x^2] && IGtQ[p, -2]

Rubi steps

\begin {align*} \int \frac {x^2 \left (d+e x^2+f x^4\right )}{a+b x^2+c x^4} \, dx &=\int \left (\frac {c e-b f}{c^2}+\frac {f x^2}{c}-\frac {a (c e-b f)-\left (c^2 d-b c e+b^2 f-a c f\right ) x^2}{c^2 \left (a+b x^2+c x^4\right )}\right ) \, dx\\ &=\frac {(c e-b f) x}{c^2}+\frac {f x^3}{3 c}-\frac {\int \frac {a (c e-b f)+\left (-c^2 d+b c e-b^2 f+a c f\right ) x^2}{a+b x^2+c x^4} \, dx}{c^2}\\ &=\frac {(c e-b f) x}{c^2}+\frac {f x^3}{3 c}+\frac {\left (c^2 d-b c e+b^2 f-a c f-\frac {b^2 c e-2 a c^2 e-b^3 f-b c (c d-3 a f)}{\sqrt {b^2-4 a c}}\right ) \int \frac {1}{\frac {b}{2}+\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{2 c^2}+\frac {\left (c^2 d-b c e+b^2 f-a c f+\frac {b^2 c e-2 a c^2 e-b^3 f-b c (c d-3 a f)}{\sqrt {b^2-4 a c}}\right ) \int \frac {1}{\frac {b}{2}-\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{2 c^2}\\ &=\frac {(c e-b f) x}{c^2}+\frac {f x^3}{3 c}+\frac {\left (c^2 d-b c e+b^2 f-a c f+\frac {b^2 c e-2 a c^2 e-b^3 f-b c (c d-3 a f)}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{5/2} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\left (c^2 d-b c e+b^2 f-a c f-\frac {b^2 c e-2 a c^2 e-b^3 f-b c (c d-3 a f)}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{5/2} \sqrt {b+\sqrt {b^2-4 a c}}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.31, size = 365, normalized size = 1.29 \begin {gather*} \frac {6 \sqrt {c} (c e-b f) x+2 c^{3/2} f x^3+\frac {3 \sqrt {2} \left (-b^3 f-b c \left (c d+\sqrt {b^2-4 a c} e-3 a f\right )+b^2 \left (c e+\sqrt {b^2-4 a c} f\right )+c \left (c \sqrt {b^2-4 a c} d-2 a c e-a \sqrt {b^2-4 a c} f\right )\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {3 \sqrt {2} \left (b^3 f+b c \left (c d-\sqrt {b^2-4 a c} e-3 a f\right )+b^2 \left (-c e+\sqrt {b^2-4 a c} f\right )+c \left (c \sqrt {b^2-4 a c} d+2 a c e-a \sqrt {b^2-4 a c} f\right )\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} \sqrt {b+\sqrt {b^2-4 a c}}}}{6 c^{5/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(x^2*(d + e*x^2 + f*x^4))/(a + b*x^2 + c*x^4),x]

[Out]

(6*Sqrt[c]*(c*e - b*f)*x + 2*c^(3/2)*f*x^3 + (3*Sqrt[2]*(-(b^3*f) - b*c*(c*d + Sqrt[b^2 - 4*a*c]*e - 3*a*f) +
b^2*(c*e + Sqrt[b^2 - 4*a*c]*f) + c*(c*Sqrt[b^2 - 4*a*c]*d - 2*a*c*e - a*Sqrt[b^2 - 4*a*c]*f))*ArcTan[(Sqrt[2]
*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt[b^2 - 4*a*c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + (3*Sqrt[2]*(b^3*f
+ b*c*(c*d - Sqrt[b^2 - 4*a*c]*e - 3*a*f) + b^2*(-(c*e) + Sqrt[b^2 - 4*a*c]*f) + c*(c*Sqrt[b^2 - 4*a*c]*d + 2*
a*c*e - a*Sqrt[b^2 - 4*a*c]*f))*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(Sqrt[b^2 - 4*a*c]*Sq
rt[b + Sqrt[b^2 - 4*a*c]]))/(6*c^(5/2))

________________________________________________________________________________________

Maple [A]
time = 0.06, size = 333, normalized size = 1.18

method result size
risch \(\frac {f \,x^{3}}{3 c}-\frac {b f x}{c^{2}}+\frac {e x}{c}+\frac {\munderset {\textit {\_R} =\RootOf \left (c \,\textit {\_Z}^{4}+\textit {\_Z}^{2} b +a \right )}{\sum }\frac {\left (\left (-a c f +b^{2} f -b c e +c^{2} d \right ) \textit {\_R}^{2}+a b f -a c e \right ) \ln \left (x -\textit {\_R} \right )}{2 c \,\textit {\_R}^{3}+\textit {\_R} b}}{2 c^{2}}\) \(100\)
default \(-\frac {-\frac {1}{3} c \,x^{3} f +b f x -c e x}{c^{2}}+\frac {-\frac {\left (-a c f \sqrt {-4 a c +b^{2}}+b^{2} f \sqrt {-4 a c +b^{2}}-b c e \sqrt {-4 a c +b^{2}}+c^{2} d \sqrt {-4 a c +b^{2}}+3 a b c f -2 a \,c^{2} e -b^{3} f +b^{2} c e -b \,c^{2} d \right ) \sqrt {2}\, \arctanh \left (\frac {c x \sqrt {2}}{\sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{2 \sqrt {-4 a c +b^{2}}\, c \sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}+\frac {\left (-a c f \sqrt {-4 a c +b^{2}}+b^{2} f \sqrt {-4 a c +b^{2}}-b c e \sqrt {-4 a c +b^{2}}+c^{2} d \sqrt {-4 a c +b^{2}}-3 a b c f +2 a \,c^{2} e +b^{3} f -b^{2} c e +b \,c^{2} d \right ) \sqrt {2}\, \arctan \left (\frac {c x \sqrt {2}}{\sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{2 \sqrt {-4 a c +b^{2}}\, c \sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}}{c}\) \(333\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(f*x^4+e*x^2+d)/(c*x^4+b*x^2+a),x,method=_RETURNVERBOSE)

[Out]

-1/c^2*(-1/3*c*x^3*f+b*f*x-c*e*x)+4/c*(-1/8*(-a*c*f*(-4*a*c+b^2)^(1/2)+b^2*f*(-4*a*c+b^2)^(1/2)-b*c*e*(-4*a*c+
b^2)^(1/2)+c^2*d*(-4*a*c+b^2)^(1/2)+3*a*b*c*f-2*a*c^2*e-b^3*f+b^2*c*e-b*c^2*d)/(-4*a*c+b^2)^(1/2)/c*2^(1/2)/((
-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))+1/8*(-a*c*f*(-4*a*c+b^2
)^(1/2)+b^2*f*(-4*a*c+b^2)^(1/2)-b*c*e*(-4*a*c+b^2)^(1/2)+c^2*d*(-4*a*c+b^2)^(1/2)-3*a*b*c*f+2*a*c^2*e+b^3*f-b
^2*c*e+b*c^2*d)/(-4*a*c+b^2)^(1/2)/c*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b
^2)^(1/2))*c)^(1/2)))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(f*x^4+e*x^2+d)/(c*x^4+b*x^2+a),x, algorithm="maxima")

[Out]

1/3*(c*f*x^3 - 3*(b*f - c*e)*x)/c^2 - integrate(-(a*b*f + (c^2*d - b*c*e + (b^2 - a*c)*f)*x^2 - a*c*e)/(c*x^4
+ b*x^2 + a), x)/c^2

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 9364 vs. \(2 (246) = 492\).
time = 8.23, size = 9364, normalized size = 33.21 \begin {gather*} \text {too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(f*x^4+e*x^2+d)/(c*x^4+b*x^2+a),x, algorithm="fricas")

[Out]

1/6*(2*c*f*x^3 + 3*sqrt(1/2)*c^2*sqrt(-(b*c^4*d^2 - 2*(b^2*c^3 - 2*a*c^4)*d*e + (b^3*c^2 - 3*a*b*c^3)*e^2 + (b
^5 - 5*a*b^3*c + 5*a^2*b*c^2)*f^2 + 2*((b^3*c^2 - 3*a*b*c^3)*d - (b^4*c - 4*a*b^2*c^2 + 2*a^2*c^3)*e)*f + (b^2
*c^5 - 4*a*c^6)*sqrt((c^8*d^4 - 4*b*c^7*d^3*e + 2*(3*b^2*c^6 - a*c^7)*d^2*e^2 - 4*(b^3*c^5 - a*b*c^6)*d*e^3 +
(b^4*c^4 -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*d^2 - (b^5
*c - 3*a*b^3*c^2 + 3*a^2*b*c^3)*d*e + (a*b^4*c - 2*a^2*b^2*c^2)*e^2)*f^2 + ((3*b^2*c^4 - 4*a*c^5)*d^3 - 3*(2*b
^3*c^3 - 3*a*b*c^4)*d^2*e + 3*(b^4*c^2 - a*b^2*c^3)*d*e^2 - (3*a*b^3*c^2 - 5*a^2*b*c^3)*e^3)*f)*x - sqrt(1/2)*
((b^2*c^5 - 4*a*c^6)*d^2*e - 2*(b^3*c^4 - 4*a*b*c^5)*d*e^2 + (b^4*c^3 - 5*a*b^2*c^4 + 4*a^2*c^5)*e^3 - (b^7 -
7*a*b^5*c + 13*a^2*b^3*c^2 - 4*a^3*b*c^3)*f^3 -...

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*(f*x**4+e*x**2+d)/(c*x**4+b*x**2+a),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 5461 vs. \(2 (252) = 504\).
time = 5.95, size = 5461, normalized size = 19.37 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(f*x^4+e*x^2+d)/(c*x^4+b*x^2+a),x, algorithm="giac")

[Out]

1/8*((2*b^4*c^4 - 16*a*b^2*c^5 + 32*a^2*c^6 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*b^4*c^
2 + 8*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a*b^2*c^3 + 2*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b
*c - sqrt(b^2 - 4*a*c)*c)*b^3*c^3 - 16*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c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)*e)*arctan(2*sqrt(1/2)*x/sqrt((b*c^3 + sqrt(b^2*c^6 - 4*a*c^7))/c^4))/((a*b^4*c^4 - 8*a^2*b^
2*c^5 - 2*a*b^3*c^5 + 16*a^3*c^6 + 8*a^2*b*c^6 + a*b^2*c^6 - 4*a^2*c^7)*c^2) + 1/8*((2*b^4*c^4 - 16*a*b^2*c^5
+ 32*a^2*c^6 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*b^4*c^2 + 8*sqrt(2)*sqrt(b^2 - 4*a*c)
*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a*b^2*c^3 + 2*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*b^3*c
^3 - 16*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sq...

________________________________________________________________________________________

Mupad [B]
time = 3.36, size = 2500, normalized size = 8.87 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^2*(d + e*x^2 + f*x^4))/(a + b*x^2 + c*x^4),x)

[Out]

x*(e/c - (b*f)/c^2) - atan(((((16*a^2*c^5*e - 4*a*b^2*c^4*e + 4*a*b^3*c^3*f - 16*a^2*b*c^4*f)/c^3 - (2*x*(4*b^
3*c^5 - 16*a*b*c^6)*(-(b^7*f^2 + b^3*c^4*d^2 - c^4*d^2*(-(4*a*c - b^2)^3)^(1/2) + b^5*c^2*e^2 - b^4*f^2*(-(4*a
*c - b^2)^3)^(1/2) - 7*a*b^3*c^3*e^2 + 12*a^2*b*c^4*e^2 + a*c^3*e^2*(-(4*a*c - b^2)^3)^(1/2) - 20*a^3*b*c^3*f^
2 - 2*b^6*c*e*f + 25*a^2*b^3*c^2*f^2 - a^2*c^2*f^2*(-(4*a*c - b^2)^3)^(1/2) - b^2*c^2*e^2*(-(4*a*c - b^2)^3)^(
1/2) - 4*a*b*c^5*d^2 - 9*a*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-(4*a*c - b^2)^3)^(1/2) + b^5*c^2*e^2 - b^4*f^2*(-(4*a*c - b^2)^3)^(1/2) - 7*a*b^3*c^3*e^2 + 12*a^2*
b*c^4*e^2 + a*c^3*e^2*(-(4*a*c - b^2)^3)^(1/2) ...

________________________________________________________________________________________